<template>
  <div class="app-container">
    <Layout>
      <!-- 左边栏 -->
      <template #left>
        <div class="aside">
          <SiteAside />
        </div>
      </template>
      <!-- 中间主区域 -->
      <template>
        <!-- 路由占位，路由会将匹配的信息渲染到这个位置 -->
        <RouterView />
      </template>
      <!-- 右边栏 -->
      <template #right>
        <!-- <RouterView /> -->
      </template>
    </Layout>
    <ToTop />
  </div>
</template>

<script>
import Layout from './components/Layout';
import SiteAside from './components/SiteAside';
import Empty from './components/Empty';
import ToTop from '@/components/ToTop';

export default {
  components: {
    Layout,
    SiteAside,
    Empty,
    ToTop,
  }
}
</script>

<style lang="less" scoped>
@import '~@/styles/mixin.less';

.app-container {
  .self-fill(fixed);
}

.aside {
  width: 250px;
  height: 100%;
}
</style>